package com.htn.common.core.constant;

/**
 * 审核状态
 * 1：有新的订单待抢单信息；2. 抢单中;3.抢单成功，4:抢单失败：5：您的同车辆人员已参与抢单
 * */
public enum WebsocketTypeEnum {
    NEWORDER("1", "有新的订单待抢单信息"),
    GRABBING("2", "抢单中"),
    GRABBSUCC("3", "抢单成功"),
    GRABBFAIL("4", "抢单失败"),
    MATEDRIVER("5", "您的同车辆人员已参与抢单"),
    REORDER("6","工长重新下单"),
    CANCEL_ORDER("7","取消订单-空跑订单"),
    ZERO_ORDER("8","完成订单-空跑订单"),
    ALL("all","全部");

    private final String value;
    private final String name;

    WebsocketTypeEnum(String value, String name){
        this.value = value;
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public String getValue(){
        return value;
    }
}
